package com.absorbx.commons;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.View;
/*
 * Plain text view
 */
public class PlainView implements View {
	String content;

	public PlainView(String content) {
		this.content = content;
	}

	public String getContentType() {
		return "text/html; charset=UTF-8";
	}

	@SuppressWarnings("unchecked")
	public void render(Map model, HttpServletRequest request,
			HttpServletResponse response) throws Exception {

		response.getWriter().write(content);

	}

}
